home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / speed_bi.swf / scripts / DefineSprite_26 / frame_1 / DoAction_2.as next >
Encoding:
Text File  |  2008-11-12  |  358 b   |  20 lines

  1. _root.autos = 10;
  2. colr = 2;
  3. i = 2;
  4. while(i < _root.autos)
  5. {
  6.    car1.duplicateMovieClip("car" + i,100 + i);
  7.    this["car" + i].ID = colr;
  8.    this["car" + i].wieoft = random(500) * i;
  9.    this["car" + i].speed = 2;
  10.    colr++;
  11.    if(colr > 4)
  12.    {
  13.       colr = 1;
  14.    }
  15.    i++;
  16. }
  17. this.car1.ID = 1;
  18. this.car1.wieoft = 1000;
  19. this.car1.speed = 2;
  20.